// Package event
// @Author: zhangdi
// @File: event
// @Version: 1.0.0
// @Date: 2023/5/22 16:40
package event

import "time"

// Event 事件结构体
type Event struct {
	ID   int64
	Time time.Time
	Name string
	Data interface{}
}

// EventHandler 事件回调函数（函数类型，起一个别名)
type EventHandler func(e *Event)
